home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19941031-19941221 / 000323_news@columbia.edu_Thu Dec 1 17:13:29 1994.msg < prev    next >
Internet Message Format  |  2020-01-01  |  4KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA25005
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Thu, 1 Dec 1994 16:47:19 -0500
  3. Received: by apakabar.cc.columbia.edu id AA22606
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Thu, 1 Dec 1994 16:47:10 -0500
  5. Path: news.columbia.edu!sol.ctr.columbia.edu!math.ohio-state.edu!uwm.edu!news.alpha.net!news.mathworks.com!uhog.mit.edu!bloom-beacon.mit.edu!gatech!newsxfer.itd.umich.edu!caen!news.tc.cornell.edu!travelers.mail.cornell.edu!newstand.syr.edu!cockpit.syr.edu!vefatica
  6. From: vefatica@cockpit.syr.edu (Vincent Fatica)
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: Fast file transfer
  9. Date: 1 Dec 1994 17:13:29 GMT
  10. Organization: none
  11. Lines: 59
  12. Message-Id: <3bl07p$e74@newstand.syr.edu>
  13. Reply-To: vefatica@mailbox.syr.edu
  14. Nntp-Posting-Host: sudial-147.syr.edu
  15. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  16.  
  17. Those who are really serious about getting the very fastest file transfer
  18. should have some standard by which to measure their own Kermit's performance
  19. and compare it to others. By this I mean an utterly uncompressible file
  20. of significant length. It's easy to make one: using your favorite language,
  21. write characters in the range 0 to 255 AT RANDOM to a file. When you're
  22. done, try zip or gzip on it ... it'll get bigger ... it's really
  23. uncompressible. I keep a 100,000 byte such file (called "tight") around
  24. for testing purposes.
  25.  
  26. I routinely achieve 1635 cps on a 14400 dialed connection and 1090 cps on
  27. a 9600 dialed connection. I believe this is pretty darned close to optimum
  28. for uncompressible data. How do you do it?
  29.  
  30. As has been said, long packets and sliding windows do a great deal in
  31. speeding up file transfer, but you won't approach the speeds above with
  32. long packets and sliding windows alone; the key to squeezing out that last
  33. 20-25% of speed is CONTROL CHARACTER UNPREFIXING.
  34.  
  35. By default, Kermit "prefixes" (adds a byte to) a fairly large number of
  36. characters; this is so intervening hardware and software won't misinterpret
  37. them and do something undesirable. For example, if there is xon/xoff flow-
  38. control in effect (anywhere along the way), an unprefixed ^S will be
  39. interpreted as a "stop" (probably not as desired). In addition, the
  40. characters which Kermit prefixes are among those which appear frequently
  41. in compressed data. So by default, Kermit does it as safely as possible.
  42.  
  43. But in any given situation there's probably only a few characters which need
  44. to be prefixed; so in general you want to tell the sending Kermit to:
  45.  
  46.     set control unprefixed all
  47.     set control prefixed [only the necessary ones]
  48.  
  49. As Frank da Cruz has pointed out, precisely which ones are necessary is very
  50. much connection-dependent, and so experimentation is the only way to find
  51. out what you need. On a dialed connection where there's no xon/xoff
  52. (anywhere) and where I know the dial-up server is in transparent mode, I
  53. need only "set control prefixed 0 1 3". If there were xon/xoff in effect,
  54. I'd add to the list 17 19 145 147 (^Q, ^S, and their 8-bit counterparts).
  55. When I use Kermit to make a network connection, I add 13 141 255.
  56. So ... experiment.
  57.  
  58. Upon first connecting to my dial-up server (a Cisco, I think) I have the
  59. opportunity to issue commands (only a few) to it. I can say, for example,
  60. "terminal download" which puts it in transparent mode, or
  61. "terminal flow hardware in out" which I imagine does just what it says.
  62. I don't pretend to be knowledgeable about such server issues, so if anyone
  63. would care to elaborate, I would appreciate it.
  64.  
  65. Also by default, Kermit tries to do a little compressing of it's own by
  66. simply replacing strings of repeated characters with something shorter.
  67. This is probably futile for data that's already compressed. Even though
  68. it's not clear that Kermit's actually wasting time trying to do this, I tell 
  69. the sending Kermit to "set repeat count off" whenever I know the data is 
  70. already compressed.
  71.  
  72. Respectfully,
  73.  
  74. Vincent Fatica
  75.